﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace KhachSan.Process.Private.Tien.Usercontrol
{
    public partial class ucNVLeTan : UserControl
    {
        public ucNVLeTan()
        {
            InitializeComponent();
        }

        private Panel pCenter;
        public ucNVLeTan(Panel pCenter)
        {
            InitializeComponent();
            this.pCenter = pCenter;
        }

        private void tileCheckIn_ItemClick(object sender, DevExpress.XtraEditors.TileItemEventArgs e)
        {
            ucFormCheckIn_Hoi hoi = new ucFormCheckIn_Hoi(pCenter);
            hoi.Location = new Point(Screen.PrimaryScreen.Bounds.Width / 2 - hoi.Size.Width / 2, Screen.PrimaryScreen.Bounds.Height / 2 - hoi.Size.Height);
            pCenter.Controls.Clear();
            ThuVien.lBack.Add(this);
            pCenter.Controls.Add(hoi);
        }
    }
}
